<%@page import="com.wed.db.ConnectDB"%>
<%@page import="com.wed.db.RalationConcept"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/stile.css" />

<script type="text/javascript" src="jquery-1.4.2.js">
	
</script>
<script type="text/javascript">
	function contentDisp() {
		$.ajax({
			url : "includetxt.jsp",
			success : function(data) {
				$("#concepts").html(data);
			}
		});
	}
</script> 
<!--[if lte IE 6]>
	<script type="text/javascript" src="supersleight-min.js"></script>
    <link href="css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

</head>

<body>
<% ArrayList<RalationConcept> r = new ConnectDB().getConceptByID(Integer.parseInt(request.getParameter("cmapversion"))); %>

	
<form  >

 <div id="container"></div>

                            
                      
<textarea id="concepts" name="Concept" rows="10" cols="60" readonly="readonly" >
Concept:
         <%
				 for(RalationConcept h : r){				 
				%>
<%=h.getConcept1() %>"<%=h.getRelation() %>"<%=h.getConcept2() %>
<%} %>
</textarea>
							
</form>
</body>
<! goi ten lop js de ve>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.conceptmap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/textareaLoader.js"></script>
<script type="text/javascript">
$(function() {
  $("#container").conceptMap({'tripleLoader': {func: textareaLoadEngine, args: {}}});
});
</script>
</html>
